package generator;

import misc.Vector3i;

public class TunnelPlacement {
    protected Vector3i location;
    protected int cost;
    
    @Deprecated
    protected TunnelPlacement() {}
    
    public TunnelPlacement(Vector3i location, int cost) {
        this.location = location;
        this.cost = cost;
    }

    public Vector3i getLocation() {
        return location;
    }

    public void setLocation(Vector3i location) {
        this.location = location;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TunnelPlacement other = (TunnelPlacement) obj;
        if (this.location != other.location && (this.location == null || !this.location.equals(other.location))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.location != null ? this.location.hashCode() : 0);
        return hash;
    }
}
